package cn.sdormitory.knowledgebase.pojo;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;


/**
 * @author yy
 */

@Data
@TableName(value ="study_skills_batch_exam")
public class StudySkillsBatchExam {

    @TableId(value="id")
    @ApiModelProperty(value="主键")
    private Integer id;

    @TableField(value="user_id")
    @ApiModelProperty(value="用户id")
    private Integer userId;

    @TableField(value="skills_batch_id")
    @ApiModelProperty(value="技能批次id")
    private Integer skillsBatchId;

    @TableField(value="total_questions")
    @ApiModelProperty(value="总题数")
    private Integer totalQuestions;

    @TableField(value="correct_questions")
    @ApiModelProperty(value="正确题数")
    private Integer correctQuestions;

    @TableField(value="error_questions")
    @ApiModelProperty(value="答错题数")
    private Integer errorQuestions;

    @TableField(value="not_questions")
    @ApiModelProperty(value="未答题数")
    private Integer notQuestions;

    @TableField(value="total_score")
    @ApiModelProperty(value="总分数")
    private Integer totalScore;

    @TableField(value="exam_score")
    @ApiModelProperty(value="考试得分")
    private Integer examScore;

    @TableField(value="is_passed")
    @ApiModelProperty(value="是否达标(0:否 1:是)")
    private Boolean isPassed;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(value="modify_time")
    @ApiModelProperty(value="更新时间")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifyTime;

}
